package com.nidu.demo.oauth2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.oauth2.mapper.dataobject.OAuth2CodeDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OAuth2CodeMapper extends BaseMapper<OAuth2CodeDO> {

    @Select("SELECT * FROM sys_oauth2_code WHERE code = #{code} LIMIT 1")
    OAuth2CodeDO selectByCode(String code);

}